<?php

//ctype_digit(mixed $text): bool
//ctype_digit — 检测数字字符
$strings = array('1820.20', '10002', 'wsl!12');
foreach ($strings as $testcase) {
    if (ctype_digit($testcase)) {
        echo "all ok\n digits";
    } else {
        echo "no all digits \n";
    }
}
